home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 July / july_2000.iso / Site Building / XML / XMLspy30c.exe / Main / icon.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2000-05-18  |  4.2 KB  |  96 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- edited with XML Spy v3.0b3 build 2 NT (http://www.xmlspy.com) by Alexander Falk (Icon) -->
  3. <!--W3C Schema generated by XML Spy v3.0b3 NT (http://www.xmlspy.com)-->
  4. <!DOCTYPE xsd:schema PUBLIC "-//W3C//DTD XMLSCHEMA 19991216//EN" "" [
  5.     <!ENTITY % p 'xsd:'>
  6.     <!ENTITY % s ':xsd'>
  7. ]>
  8. <xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns="http://www.xmlspy.com/schemas/icon/orgchart" targetNamespace="http://www.xmlspy.com/schemas/icon/orgchart">
  9.     <xsd:notation name="Icon-Orgchart" public="http://www.xmlspy.com/schemas/icon/orgchart"/>
  10.     <xsd:complexType name="DivisionType" content="elementOnly">
  11.         <xsd:sequence>
  12.             <xsd:element name="Name" type="xsd:string"/>
  13.             <xsd:element name="Established" type="xsd:year" minOccurs="0" maxOccurs="1"/>
  14.             <xsd:element name="URL" type="xsd:uriReference" minOccurs="0" maxOccurs="1"/>
  15.             <xsd:element name="Manager" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  16.             <xsd:element name="Desc" type="xsd:string"/>
  17.             <xsd:element name="Person" type="PersonType" minOccurs="0" maxOccurs="unbounded"/>
  18.         </xsd:sequence>
  19.         <xsd:attribute name="ProfitCenter" use="required">
  20.             <xsd:simpleType base="xsd:NMTOKEN">
  21.                 <xsd:enumeration value="no"/>
  22.                 <xsd:enumeration value="yes"/>
  23.             </xsd:simpleType>
  24.         </xsd:attribute>
  25.     </xsd:complexType>
  26.     <xsd:element name="Icon">
  27.         <xsd:complexType content="elementOnly">
  28.             <xsd:sequence>
  29.                 <xsd:element name="Division" type="DivisionType" minOccurs="1" maxOccurs="unbounded"/>
  30.             </xsd:sequence>
  31.             <xsd:attribute name="xmlns" type="xsd:uriReference" use="fixed" value="http://www.xmlspy.com/schemas/icon/orgchart"/>
  32.             <xsd:attribute name="xmlns:xsi" type="xsd:uriReference" use="fixed" value="http://www.w3.org/1999/XMLSchema-instance"/>
  33.             <xsd:attribute name="xsi:schemaLocation" type="xsd:string" use="default" value="http://www.xmlspy.com/schemas/icon/orgchart
  34. C:\xml\test\schema\icon2.xsd"/>
  35.         </xsd:complexType>
  36.     </xsd:element>
  37.     <xsd:complexType name="PersonType" content="elementOnly">
  38.         <xsd:annotation>
  39.             <xsd:documentation>A person working for the company</xsd:documentation>
  40.         </xsd:annotation>
  41.         <xsd:sequence>
  42.             <xsd:element name="ID">
  43.                 <xsd:annotation>
  44.                     <xsd:documentation>Unique identifier for each person</xsd:documentation>
  45.                 </xsd:annotation>
  46.                 <xsd:simpleType base="xsd:ID">
  47.                     <xsd:pattern value="\p{L}{5}\d{2}"/>
  48.                 </xsd:simpleType>
  49.             </xsd:element>
  50.             <xsd:element name="LastName" type="xsd:string">
  51.                 <xsd:annotation>
  52.                     <xsd:documentation>Last (family) name of person</xsd:documentation>
  53.                 </xsd:annotation>
  54.             </xsd:element>
  55.             <xsd:element name="FirstName" type="xsd:string">
  56.                 <xsd:annotation>
  57.                     <xsd:documentation>First (given) name of person</xsd:documentation>
  58.                 </xsd:annotation>
  59.             </xsd:element>
  60.             <xsd:element name="Title" type="xsd:string" minOccurs="0" maxOccurs="1">
  61.                 <xsd:annotation>
  62.                     <xsd:documentation>Academic (or other) title</xsd:documentation>
  63.                 </xsd:annotation>
  64.             </xsd:element>
  65.             <xsd:element name="PhoneExt" type="xsd:number">
  66.                 <xsd:annotation>
  67.                     <xsd:documentation>Phone extension for direct dialing</xsd:documentation>
  68.                 </xsd:annotation>
  69.             </xsd:element>
  70.             <xsd:element name="EMail" type="emailType">
  71.                 <xsd:annotation>
  72.                     <xsd:documentation>E-Mail address on the Internet (must be in name@company.net format)</xsd:documentation>
  73.                 </xsd:annotation>
  74.             </xsd:element>
  75.         </xsd:sequence>
  76.         <xsd:attribute name="Mgr" type="xsd:boolean" use="required">
  77.             <xsd:annotation>
  78.                 <xsd:documentation>Is this person employed in a managerial role</xsd:documentation>
  79.             </xsd:annotation>
  80.         </xsd:attribute>
  81.         <xsd:attribute name="Prg" type="xsd:boolean" use="required">
  82.             <xsd:annotation>
  83.                 <xsd:documentation>Is this person capable of programming</xsd:documentation>
  84.             </xsd:annotation>
  85.         </xsd:attribute>
  86.         <xsd:attribute name="Des" type="xsd:boolean" use="optional">
  87.             <xsd:annotation>
  88.                 <xsd:documentation>Does this person have design authority</xsd:documentation>
  89.             </xsd:annotation>
  90.         </xsd:attribute>
  91.     </xsd:complexType>
  92.     <xsd:simpleType name="emailType" base="xsd:string">
  93.         <xsd:pattern value="[\p{L}_]+(\.[\p{L}_]+)*@[\p{L}_]+(\.[\p{L}_]+)+"/>
  94.     </xsd:simpleType>
  95. </xsd:schema>
  96.